package com.easylinkin.linkappapi.shigongyun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 基坑监测记录
 * </p>
 *
 * @author zhengwen
 * @since 2022-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("jk_monitor_info")
public class JkMonitorInfo extends Model<JkMonitorInfo> {

  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  /**
   * 采集时间
   */
  @TableField("collect_time")
  private String collectTime;

  /**
   * 项目id，第三方提供
   */
  @TableField("project_id")
  private String projectId;

  /**
   * 采集数据类型，1基坑监测数据
   */
  @TableField("data_type")
  private String dataType;

  /**
   * 租户id
   */
  @TableField("tenant_id")
  private String tenantId;

  /**
   * 创建时间
   */
  @TableField("create_time")
  private Date createTime;


  @Override
  protected Serializable pkVal() {
    return this.id;
  }

}
